package com.ty.user.starter.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ty.user.starter.entity.Log;
import com.ty.user.starter.entity.criteria.LogCriteria;
import com.ty.user.starter.entity.vo.LogVo;
import com.ty.user.starter.mapper.LogMapper;
import com.ty.user.starter.service.LogService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统日志表 服务实现类
 * </p>
 *
 * @author minku
 * @since 2021-10-21
 */
@Service
public class LogServiceImpl extends ServiceImpl<LogMapper, Log> implements LogService {

    @Override
    public IPage<LogVo> findAll(LogCriteria criteria) {
        return baseMapper.findAll(criteria.defaultPage(), criteria);
    }
}
